SlkStore.GetAssignmentProperties Method (AssignmentItemIdentifier, SlkRole)

Retrieves general information about an assignment.

Parent Type: SlkStore

Namespace: Microsoft.SharePointLearningKit

Assembly: Microsoft.SharePointLearningKit.dll

Syntax
C#

public AssignmentProperties GetAssignmentProperties (
AssignmentItemIdentifier assignmentId,
SlkRole slkRole

)

Parameters

assignmentId

The AssignmentItemIdentifier of the assignment to retrieve information about.

slkRole

The SlkRole for which information is to be retrieved.

Return Value

An AssignmentProperties object containing information about the assignment. Note that only the UserId of each SlkUser object within the returned AssignmentProperties.Instructors and AssignmentProperties.Learners collections is valid.

Exceptions
Exception type Condition
SafeToDisplayException

An error occurred that can be displayed to a browser user. Possible cause: the user isn't an instructor on the assignment (if slkRole is SlkRole.Instructor), or the user isn't a learner on the assignment (if slkRole is SlkRole.Learner).

Remarks

Security:  If slkRole is SlkRole.Instructor, this operation fails if the current user isn't an instructor on the assignment. If slkRole is SlkRole.Learner, this operation fails if the current user isn't a learner on the assignment.